package day124;

import org.w3c.dom.ls.LSOutput;

public class StringBuilderDemo04 {
    public static void main(String[] args) {


    StringBuilder buf=new StringBuilder();
    buf.append("A")
            .append("A")
            .append("B")
            .append("C")
            .append("A")
            .append("D")
            .insert(1,"C")
            .delete(2,4);

        String str=buf.toString();
        System.out.println(str);

}}
